package com.GlobalPaint.app.ui.HTML;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.GlobalPaint.app.R;
import com.GlobalPaint.app.bean.PaletteDetailsBean;
import com.GlobalPaint.app.ui.HTML.adpter.tujiAdpter;
import com.jcodecraeer.xrecyclerview.XRecyclerView;

public class tijiFragment extends Fragment {


    private XRecyclerView tijie_xrecycler;
    private tujiAdpter tujiAdpter;
    private PaletteDetailsBean.DataBean.FImageBean Bean;

    /*public tijiFragment(PaletteDetailsBean.DataBean.FImageBean bean) {

        Bean = bean;
    }
*/
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.fragment_tiji, container, false);
        initView(view);
        return view;
    }

    private void initView(View view) {
        tijie_xrecycler = (XRecyclerView)view.findViewById(R.id.tijie_xrecycler);
        tijie_xrecycler.setLoadingMoreEnabled(false);
        tijie_xrecycler.setPullRefreshEnabled(false);
        tijie_xrecycler.setLayoutManager(new LinearLayoutManager(getContext()));
        tujiAdpter=new tujiAdpter(Bean,getContext());
        tijie_xrecycler.setAdapter(tujiAdpter);
    }

}
